home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
051-075
/
disk_069
/
frags
/
poster
< prev
Wrap
Text File
|
1992-05-06
|
2KB
|
40 lines
Article 3542 of comp.sys.amiga:
Path: mcdsun!noao!hao!hplabs!sri-unix!rutgers!ames!ucbcad!ucbvax!jade!violet.berkeley.edu!mwm
From: mwm@violet.berkeley.edu (Mike (My watch has windows) Meyer)
Newsgroups: comp.sys.amiga
Subject: replacement for frags
Message-ID: <3148@jade.BERKELEY.EDU>
Date: 13 Apr 87 10:39:30 GMT
Sender: usenet@jade.BERKELEY.EDU
Reply-To: mwm@violet.berkeley.edu(Mike (My watch has windows) Meyer)
Organization: Missionaria Phonibalonica
Lines: 342
Somewhere along the way, I picked up a program called frags. It
reports the number of free blocks of size 2^(n-1) to (2^n)-1 for n up
to 19 or so (blocks of max size 512K-1). Since it's easy to have
blocks bigger than 512K, I rewrote it to handle n up to 24 (blocks of
16Meg). Those of you with 68020's can rewrite it to handle n up to 32
if you wish. Since the result is also 300 bytes smaller than the
original, I'm happily replacing the old one everywhere.
I tweaked it a little on the way through, so blocks smaller than any
possible (8 is the smallest possible), including zero-sized blocks,
are handled (just to prevent them from raping things should they occur
because of bugs elsewhere. I also deleted the header so that the
output can be fed to filters. Oughta delete the `:' also, but...
This also represents my first attempt at Knuth's "literate
programming." Need to go read the references to get it right, but the
results speak for themselves (at length).
<mike
--
Here's a song about absolutely nothing. Mike Meyer
It's not about me, not about anyone else, ucbvax!mwm
Not about love, not about being young. mwm@berkeley.edu
Not about anything else, either. mwm@ucbjade.BITNET